using System.Linq;
using YatFram;
using NUnit.Framework;

namespace Examples.Google
{
    public static class Assertions
    {
        public static YatFram<GoogleContext> SeeTheResults(this YatFram<GoogleContext> t, string resultUrl)
        {
            return t.Check(c => Assert.That(c.Browser.SearchResults.Results().Contains(resultUrl)));
        }
    }
}